public class StartGame {

    public static void main(String[] args) {
        System.out.println("游戏即将开始");
        new StartGame().init(); // 初始化地图
        Snake snake = new Snake();
        FoodCreate foods = new FoodCreate();
        Ponit food = foods.create(snake);
        Map.formatMap(snake, food);
        CreateFrame frame = new CreateFrame(snake, food); // 创建窗口
        frame.runGame();
    }
    public void init() {
        Map.initMap();
        Map.clearMap();
    }
}
